/** 
 * @(#)Demo.java
 */

/**
 * @author Robert Denda&Didier Gutacker
 * @version 1.0, 06.09.97
 * @see NetworkDemo
 * @see NetworkDemoRIP
 * @see InfoWindow 
 */

/**
 *
 * original author Robert Denda, changes made by Didier Gutacker
 */

public abstract class Demo implements Runnable {
  Thread t;
  boolean running;
  InfoWindow infoWindow;

  public final void start() {
    t.start();
    running = true;
  } // Demo.start

  public final boolean running() {
    return running;
  } // Demo.running

  public final void stop() {
    t.stop();
    t = null;
  } // Demo.stop

  public final void suspend() {
    t.suspend();
  } // Demo.suspend

  public final void resume() {
    t.resume();
  } // Demo.resume

} // Demo
